﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AffContactPro.aspx.cs" Inherits="AffContactPro" %>
<%@ PreviousPageType VirtualPath="AffContactPerso.aspx"%>

<asp:content ContentPlaceHolderID="contenu" runat="server">
    <fieldset id="custom">
        <legend>Données Professionnelles - 2/2</legend>
        <table>
       <!-- <asp:panel ID="panel" runat="server" Enabled="true">
                <td colspan="2" align="left">
                    <asp:CheckBox ID="cbSansProfession" runat="server" Text="Sans profession" />
                </td>
                <td align="left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbSociete" runat="server" AssociatedControlID="tbSociete" Text="Société : " style="text-align: right"/>
                </td>
                <td>
                    <asp:TextBox ID="tbSociete" runat="server" style="text-align: left" Width="250px" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbProfession" runat="server" AssociatedControlID="tbProfession" Text="Profession : " />
                </td>
                <td>
                    <asp:TextBox ID="tbProfession" runat="server" Width="250px" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbAdresse" runat="server" AssociatedControlID="tbAdresse" Text="Adresse : " />
                </td>
                <td>
                    <asp:TextBox ID="tbAdresse" runat="server" Width="250px" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbCp" runat="server" AssociatedControlID="tbCp" Text="Code postal : " />
                </td>
                <td>
                    <asp:TextBox ID="tbCp" runat="server" Width="60px" />
                    <asp:RegularExpressionValidator ID="revCp" runat="server" 
                            ControlToValidate="tbCp" ErrorMessage="Code postal non valide" 
                            ValidationExpression="\d{5}" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbVille" runat="server" AssociatedControlID="tbVille" Text="Ville : " />
                </td>
                <td>
                    <asp:TextBox ID="tbVille" runat="server" Width="250px" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbTelephone" runat="server" AssociatedControlID="tbTelephone" Text="Téléphone : " />
                </td>
                <td>
                    <asp:TextBox ID="tbTelephone" runat="server" Width="130px" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbTelecopie" runat="server" AssociatedControlID="tbTelecopie" Text="Télécopie : " />
                </td>
                <td>
                    <asp:TextBox ID="tbTelecopie" runat="server" Width="130px" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbEmail" runat="server" AssociatedControlID="tbEmail" Text="Email : " />
                </td>
                <td>
                    <asp:TextBox ID="tbEmail" runat="server" Width="250px" />
                    <asp:RegularExpressionValidator ID="revEmail" runat="server" Display="Dynamic"
                            ControlToValidate="tbEmail" ErrorMessage="Email non valide" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                </td>
                <td>
                    <asp:ImageButton ID="btEmail" runat="server" onclick="btEmail_Click" src="Images/icone-enveloppe.gif" alt="Cliquez ici pour envoyer un mail à ce destinataire"/>
                </td>
            </tr>
            </asp:panel>
            <tr>
                <td>
                    <asp:Button ID="btAnnuler" runat="server" Text="Annuler" onclick="btAnnuler_Click" />
                </td>
                <td align="center">        
                    <asp:Button ID="btPrecedent" runat="server" Text="&lt;&lt; Précédent" onclick="btPrecedent_Click" />
        
                    <asp:Button ID="btEnregistrer" runat="server" Text="Enregistrer" onclick="btEnregistrer_Click" />    
                </td>
                <td align="center">        
                    &nbsp;</td>
            </tr>
        </table>
    </fieldset>
</asp:content>   
